class Goods:
    def __init__(self, name, price):
        self.name = name
        self.price = price

    def info(self):
        print(f'名字:{self.name},价格:{self.price}')


class Phone(Goods):
    def __init__(self, name, price, size, os):
        # 调用父类的属性
        super().__init__(name, price)
        self.size = size
        self.os = os

    def info(self):
        # 调用父类的方法
        super().info()
        return f'型号:{self.size},系统:{self.os}'


phone = Phone('iphone', 5999, 'iphone13', 'ios')

print(phone.info())
